# Contributor: Angelo Verlain <hey@vixalien.com>
# Maintainer: Angelo Verlain <hey@vixalien.com>
pkgname=elementary-camera
pkgver=8.0.0
pkgrel=0
pkgdesc="Camera app designed for elementary OS"
url="https://github.com/elementary/camera"
# loongarch64, s390x: blocked by gst-plugins-rs-gtk4
arch="all !loongarch64 !s390x"
license="GPL-3.0-or-later"
depends="gst-plugins-rs-gtk4"
makedepends="
	libcanberra-dev
	granite7-dev
	gstreamer-dev
	gst-plugins-base-dev
	gtk4.0-dev
	meson
	vala
	"
subpackages="$pkgname-lang"
source="$pkgname-$pkgver.tar.gz::https://github.com/elementary/camera/archive/refs/tags/$pkgver.tar.gz"

builddir="$srcdir/camera-$pkgver"

build() {
	abuild-meson . output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
0dc74cce2bdf48845a686521e2b5c95071405d9108c6a03aad032ac3a560f95391404736fa8c260d86c4184fff2c6c3a9b9e7c96b0e3ee18959c43d3a9fb131f  elementary-camera-8.0.0.tar.gz
"
